package jt.classic.system.listener.init;

import jt.classic.system.ISystemException;
import jt.classic.system.init.AbstractInitializtion;
import jt.classic.system.listener.ListenerCenter;
import jt.classic.system.listener.ListenerTimer;


/**
 * 监听器注册中心启动加载
 * @author mido
 *
 */
public class ListenerInitializtion extends AbstractInitializtion {
    ListenerTimer tqt = new ListenerTimer(30000, -1);

    public void load() throws ISystemException {
        ListenerCenter register = ListenerCenter.getInstance();

        register.init();

        System.err.println("system message: listener is OK.");

        tqt.runTask();
    }

    public void release() throws ISystemException {
        tqt.stopTask();
    }
}
